Skip to main content
Version: 1.0.2

Get Company Approval List

The Get Company Approval List API displays a comprehensive list of companies that have been added and are currently awaiting approval.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription

id

Mandatory

String

Unique ID for each request

method

Mandatory

String

Method Name - should be "VisaService.GetApprovalTickets"

params

Mandatory

Object

api

Mandatory

Object

credential

Mandatory

String

API credential provided by NetXD

signature

Mandatory

String

Signature of the digitally signed payload

payload

Mandatory

Object

pageNo

Mandatory

Number

Required page number

pageSize

Mandatory

Number

Required Number of entries per page


curl --location --globoff '{{URL}}/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"id":"1","jsonrpc":"2.0","method":"VisaService.GetApprovalTickets","params":{"api":{"credential":"Basic ay5iYXN1dmFuQGJhbmtjYncub3JnOmUxYWY0Y2ExYzE1MDRiMTNiYzcxZjhlOTY0M2VjZTlj","signature":"{{signature}}"},"payload":{"pageNo":1,"pageSize":10}}}'

Body


{
"id": "1",
"jsonrpc": "2.0",
"method": "VisaService.GetApprovalTickets",
"params": {
"api": {
"credential": "Basic ay5iYXN1dmFuQGJhbmtjYncub3JnOmUxYWY0Y2ExYzE1MDRiMTNiYzcxZjhlOTY0M2VjZTlj",
"signature": "{{signature}}"
},
"payload": {
"pageNo": 1,
"pageSize": 10
}
}
}

Response: 201

Response Parameters
ParameterDescription

jsonrpc

String

JSON RPC VERSION - should be "2.0"

result

Object

totalElements

Number

Total number of entries

approvalTickets

Object

id

String

Approval Ticket number

createdUser

String

Username/email id of the user who created the approval ticket

createdTime

String

Date and time of approval ticket creation

status

String

Status of creation of company approval ticket

type

String

Type of Approval ticket

keyId

String

Company ID

id

String

Unique ID for each response


{
"jsonrpc": "2.0",
"result": {
"totalElements": 1,
"approvalTickets": [
{
"id": "63514aff553b98c3309d8e9e",
"createdUser": "s.parameswaran+1@bankcbw.org",
"createdTime": "2022-10-20T13:19:59.627Z",
"status": "CREATED",
"type": "ADD_COMPANY",
"keyId": "65314ff95dbae9d1eeac54a3"
}
]
},
"id": "1"
}